﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for BillBlo
/// </summary>
public class BillBlo
{
    #region "variable"
    private BillDao dao;
    private string _error;
    private BillDto dto;
    #endregion

    #region "properties"
    public string Error
    {
        get { return _error; }
        set { _error = value; }
    }


    public BillDto Service
    {
        get { return dto; }
        set { dto = value; }
    }
    #endregion
    
	public BillBlo()
	{
        dao = new BillDao();
        dto = new BillDto();
	}
    public int SelectCountBillById_SD(int id_SD)
    {
        return dao.SelectCountBillById_SD(id_SD);
    }
    public void InsertBill(BillDto bill)
    {
        dao.InsertBill(bill);
    }
    public void UpdatePaidBill(int id_Bill)
    {
        dao.UpdatePaidBill(id_Bill);
    }
    public List<BillDto> SelectBillAdv(int id_MN, int id_ST, bool billStatus, string orderby, string sort,string search_cretateDate,string search_paymentDate)
    {
        return dao.SelectBillAdv( id_MN, id_ST, billStatus,orderby,sort,search_cretateDate,search_paymentDate);
    }
    public List<BillDto> SelectBillOfOtherService(int id_MN, bool billStatus, string orderby, string sort,string search_cretateDate,string search_paymentDate)
    {
        return dao.SelectBillOfOtherService(id_MN, billStatus, orderby, sort, search_cretateDate, search_paymentDate);
    }
}